package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDTO;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;

import java.util.List;

public interface AdSensitiveService extends IService<AdSensitive> {

    /**
     * 分页查询
     * @param sensitiveDTO
     * @return
     */
    public ResponseResult list(SensitiveDTO sensitiveDTO);

    //敏感词新增
    ResponseResult insert(AdSensitive sensitive);
    //敏感词修改
    ResponseResult update(AdSensitive sensitive);

    //根据id删除
    ResponseResult deleteById(Integer id);

    /**
     * 查询敏感词内容列表
     * @return
     */
    public ResponseResult<List<String>> selectAllSensitives();


}
